package com.lcn.consumer.lcnconsumer.feign;

import com.lcn.consumer.lcnconsumer.bean.Depart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

// 参数指定该客户端要访问的提供者微服务名称
@FeignClient(value = "lcn-provider")
@RequestMapping("/provider/depart")
public interface DepartFeign {

    @PostMapping("/save")
    boolean saveDepart(@RequestBody Depart depart);

}
